# -*- encoding: utf-8 -*-
'''
@File    :   udp.py
@Time    :   2020/07/08 22:55:22
@Author  :   Wicos 
@Version :   1.0
@Contact :   wicos@wicos.cn
'''

# here put the import lib
import socket

class UDP:
    def __init__(self,ip:str,port:str):
        self.ip = ip
        self.port = port
        self.udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    
    def start(self):
        self.bind((self.ip,self.port))